package com.xxgc.zde.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import org.dromara.autotable.annotation.ColumnComment;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;
import org.dromara.mpe.autotable.annotation.ColumnId;
import org.dromara.mpe.autotable.annotation.Table;
import org.dromara.mpe.processer.annotation.AutoDefine;
import org.dromara.mpe.processer.annotation.AutoMapper;
import org.dromara.mpe.processer.annotation.AutoRepository;

/**
 * 仓库
 */
@AutoDefine // 新增
@AutoMapper // 新增
@AutoRepository // 新增
// @Data自动生成set get方法
@Data
@Table(value = "zde_warehouse", comment = "仓库")
public class WarehouseEntity {
    @ColumnComment("id")
    @ColumnId(mode = IdType.AUTO, comment = "id主键", type = MysqlTypeConstant.BIGINT, length = 32)
    private String id;

    @ColumnComment("用户id")
    private String userId;

    @ColumnComment("物品id")
    private String weaponId;

    @ColumnComment("数量")
    private Integer amount;
}